import 'package:json_annotation/json_annotation.dart';



class BaseModel {

  BaseModel.fromJson(Map<String, dynamic> json) {
    errorCode = json['errorCode'].toString();
    errorMsg = json['errorMsg'].toString();
    data = json['data'] ?? '';
  }

  late String errorCode;
  late String errorMsg;
  dynamic data;

  Map<String, dynamic> toMap() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['data'] = data;
    data['errorMsg'] = errorMsg;
    data['errorCode'] = errorCode;
    return data;
  }
}



